$('#outSave').click(function () {
    var measureId = $('#measureId').val();
    if(measureId==''){
        layer.msg('磅单号不存在，请确认', {icon: 2});
        return false;
    }
    var tareP = $('#tareP').val();
    var grossWeight = $('#gross').val();

    // if(grossWeight=='0'){
    //     layer.msg('出厂方向采集毛重为0，请出厂重置，重新读卡')
    //     return false;
    // }
    var grossTime = $('#grossTime').val();
    var tare = $('#tare').val();
    var tareTime = $('#tareTime').val();
    var suttle = $('#suttle').val();
    var grossWeightp = $('#grossWeightP').val();
    var unloadSymbol = $('#unloadSymbol').val();
    var returnSymbol = $('#returnSymbol').val();
    var remarks1 = $('#remarks1').val();
    var supplierName = $('#supplierNameCode').val();
    var customerName = $('#customerNameCode').val();
    var carId = $('#main-plate-no-pre').val()+$('#carId-f').val();
    var materialName = $('#materialNameCode').val();
    var sourceGross = $('#sourceGross').val();
    var sourceTare = $('#sourceTare').val();
    var sourceSuttle = $('#sourceSuttle').val();
    var remark2 = $('#remark2').val();
    var closeSymbol = $('#closeSymbol').val();

    var storageName = $('#storageName').val();
    var grossWeightSite = $('#grossWeightSite').val();
    var tareSite = $('#tareSite').val();
    $.ajax({
        url : '/measure-save',
        data : {measureId:measureId,grossWeight:grossWeight,grossTime:grossTime,tare:tare,tareTime:tareTime,suttle:suttle,grossWeightp:grossWeightp
            ,unloadSymbol:unloadSymbol,returnSymbol:returnSymbol,closeSymbol:closeSymbol,remarks1:remarks1,supplierName:supplierName,tareP:tareP,
            customerName:customerName,carId:carId,materialName:materialName,storageName:storageName,sourceGross:sourceGross,grossWeightSite:grossWeightSite,tareSite:tareSite,sourceTare:sourceTare,sourceSuttle:sourceSuttle,remark2:remark2},
        async: false,
        beforeSend: function(){
            layer.msg('保存中', {icon: 1});
        },
        success :function(data){
            layer.msg('保存完毕', {icon: 1});
            $('#outSave').addClass("disabled");
            $('#print').removeClass("disabled");
            // init();
        }
    })

});